//
//  ManagerProdutCell.m
//  BCVersion
//
//  Created by 吴 崧 on 14-2-28.
//  Copyright (c) 2014年 Jungle. All rights reserved.
//


#import "ManagerProductCell.h"
#import <SDWebImage/UIImageView+WebCache.h>
@implementation ManagerProductCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

-(void)configWithDataSource:(ClientProdutModel *)model
{
    self.ptAvatarImage.image = nil;
    self.title.text = nil;
    self.message.text = nil;
    
    [self.ptAvatarImage setImageWithURL:[NSURL URLWithString:model.image]  placeholderImage:nil];
    self.title.text = model.title;
    self.message.text = model.message;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
